package com.imooc.mapper;


import com.imooc.entity.pojo.Fans;
import org.apache.ibatis.annotations.Mapper;

@Mapper

public interface FansMapper {
    /**
     * 查询双方关系是否存在
     * @param fanId
     * @param vlogerId
     * @return
     */
    Fans findByFanIdAndVlogerId(String fanId, String vlogerId);

    void saveRel(Fans fans);

    void updateRel(Fans fansRel);

    void deleteRel(Fans fansRel);

}